<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>44 ES6引入模块数据语法汇总</title>
</head>

<body>
    <script type="module">
        //1. 通用
        // import * as m2 from './js/m2.js';

        //2. 解构赋值方式
        // import { school, teach } from './js/m1.js';
        // import { school as guigu, findJob } from './js/m2.js';
        // import { default as m3 } from './js/m3.js';
        // console.log(guigu, findJob);
        // console.log(m3);

        //3. 简便形式 (只针对默认暴露)
        import m3 from './js/m3.js';
        console.log(m3);

    </script>
</body>

</html>